home *** CD-ROM | disk | FTP | other *** search
- Path: news1.cle.ab.com!usenet
- From: don.phillips@ab.com (Donald-Anthony C. Phillips)
- Newsgroups: comp.lang.c
- Subject: Re: new C programmer needs help with quicksort
- Date: Thu, 08 Feb 1996 22:13:03 GMT
- Organization: The Allen-Bradley Co., Inc
- Distribution: inet
- Message-ID: <4fdhvu$54k@news1.cle.ab.com>
- References: <4fbvrd$i6p@sifon.cc.mcgill.ca>
- NNTP-Posting-Host: abpc386.cle.ab.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Your recursive call is reallocating a new instance of the aux array by
- declaring 'int aux[3]' each time in quicksort. Try putting the aux as
- a global variable in the main procedure. This should at least give
- you the same aux[] data throughout.
- Donald-Anthony C. Phillips
- Programmer/Analyst
- Rockwell Automation
- ---------------------------------------
- Allen-Bradley
- don.phillips@ab.com
-
-